package demo;

public class Test {
    public static void main(String[] args) {
        String str=new String("hello,world!");
        System.out.println(str.length());//返回字符串长度
        System.out.println(str.isEmpty());//判断是长度是否为0

    }
}
